<?php

ob_start ( ) ;

error_reporting ( -1 ) ;

define ( 'KV_CHARSET', 'utf8' ) ;
define ( 'KV_CACHE', dirname ( __FILE__ ) . '\cache\KValidator\\' ) ;
define ( 'KV_MODEL', dirname ( __FILE__ ) . '\config\KValidator\\' ) ;
define ( 'BASE' , '/bfe' ) ;
define ( 'BANK_CODE', '30004' ) ;

date_default_timezone_set ( 'Europe/Paris' ) ;

/*
	Libraries loading
*/
$path = dirname ( __FILE__ ) . '/libs' ;

if ( is_dir ( $path ) )
{
	if ( $folder = opendir ( $path ) )
	{
		while ( ( $file = readdir ( $folder ) ) !== false )
		{
			if ( ! in_array ( $file, array ( '.', '..' ) ) && file_exists ( $path . '/' . $file . '/' . $file . '.class.php' ) )
			{
				include $path . '/' . $file . '/' . $file . '.class.php' ;
			}
		}
		closedir ( $folder ) ;
	}
}

unset ( $file, $folder, $path ) ;

Dispatcher::dispatch ( ) ;

ob_end_flush ( ) ;

exit ;

?>